function Header() {

}

Header.prototype.listenUser = function () {
    var auth = $('.auth-box');
    var userMore = $('.user-more-box');
    auth.hover(function () {
        userMore.show();
    }, function () {
        userMore.hide();
    })
}
Header.prototype.listenImage = function () {
    var imgCaptcha = $('.img-captcha')

    imgCaptcha.click(function () {
        imgCaptcha.attr('src', '/account/img_captcha/?random=' + Math.random())
    })
}
Header.prototype.clickListen = function () {
    var lis = $('.nav li');
    lis.click(function (){
        this.addClass("active").sibling().removeClass("active");
    })
}
Header.prototype.run = function () {
    this.listenUser();
    this.listenImage();
}
$(function () {
    var header = new Header();
    header.run();
})